<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
use yii\widgets\ActiveForm;
use common\models\System;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

?>
<div class="post-index">
<?php Pjax::begin(); ?>
    <?php $img = System::find()->where(['name'=>'首页LOGO'])->one();   ?>
    <section id="index-search">
        <div class="container">
            <a href="javascript:;"><img id="logo" height="200" src="<?php echo '/uploads/gzhimg/'.$img->img?>" alt=""></a>
            <div class="row">
                <?php $form = ActiveForm::begin(); ?>
                <div class="col-md-8 col-md-offset-2">
                    <div class="input-group">
                        <input type="text" name="Post[title]" class="form-control" id="search-input" placeholder="Search for...">
                        <span class="input-group-btn">
                    <button class="btn btn-default" id="search-btn" type="submit">搜索</button>
                  </span>
                    </div>
                </div>
                <?php ActiveForm::end(); ?>
            </div>
        </div>
    </section>

    <section id="weixincode">
        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <img width="120" height="120" src="http://www.qiwangxiao.com/images/about/weixin.jpg" alt="二维码">
                    <p>扫码关注微信公众号</p>
                </div>
            </div>
        </div>
    </section>
<?php Pjax::end(); ?></div>
